var JsTpl={
	assign:function(str,vars){
		var re,to,key;
        for (var key in vars) {
			re = new RegExp("\{:" + key + "\}", "g");
			to = vars[key];
			str =str.replace(re, to);
        }
        return str;
	}
}